package com.example.selfcontrol.service;

import com.example.selfcontrol.config.Response;
import com.example.selfcontrol.dto.UserInfoDTO;
import com.example.selfcontrol.entity.Credit;
import com.example.selfcontrol.entity.User;

public interface UserService {
    Response addUser(User user);
    Response loginUser(Credit credit) ;

    User getUser(Integer id) ;

    Response updateUser(User user,String token) ;

    UserInfoDTO getUserInfo(int userId);

    Response IncUserExp(int userId, int incCount);

    String UserRank(int userId);

    Response UpdateUserArticleNumber(Long userId);
}
